﻿<UserControl
    x:Class="CeBIT2010.CebitAgendaItem"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Height="60"
    xmlns:my="clr-namespace:TheOliver.DigitalSignage.Client.Interfaces;assembly=TheOliver.DigitalSignage.Client.Interfaces" Width="504">
    <UserControl.Resources>
        <my:TimeConverter
            x:Key="_timeConverter" />
    </UserControl.Resources>
    <Grid
        x:Name="LayoutRoot">
        <Grid.ColumnDefinitions>
            <ColumnDefinition
                Width="96" />
            <ColumnDefinition />
            <ColumnDefinition
                Width="60" />
        </Grid.ColumnDefinitions>
        <Image Grid.ColumnSpan="3" Margin="-30,0,-7,0" Source="Assets/BIEB_Zettel.png" Stretch="Fill">
        	<Image.Effect>
        		<DropShadowEffect Opacity="0.64"/>
        	</Image.Effect>
        </Image>
        <TextBlock
            x:Name="_time"
            Margin="8,0"
            TextWrapping="Wrap"
            Text="{Binding SlotTime, ConverterParameter=HH:mm, Converter={StaticResource _timeConverter}}"
            DataContext="{Binding}"
            VerticalAlignment="Center"
            d:LayoutOverrides="Width"
            HorizontalAlignment="Center"
            FontSize="18.667" />
        <TextBlock
            x:Name="_sessionTitle"
            Margin="8,0,0,0"
            TextWrapping="Wrap"
            Text="{Binding SessionTitle}"
            DataContext="{Binding}"
            d:LayoutOverrides="Height"
            Grid.Column="1"
            HorizontalAlignment="Left"
            VerticalAlignment="Center"
            FontSize="18.667" />
        <StackPanel
            x:Name="_speakerName"
            Margin="0,0,8,0"
            Orientation="Horizontal"
            Grid.Column="1"
            HorizontalAlignment="Right"
            d:LayoutOverrides="Height"
            VerticalAlignment="Center">
            <TextBlock
                x:Name="_speakerFirstname"
                TextWrapping="Wrap"
                Text="{Binding SpeakerFirstname}"
                DataContext="{Binding}"
                d:LayoutOverrides="Width"
                FontSize="18.667"
                Margin="0,0,8,0"
                HorizontalAlignment="Right"
                VerticalAlignment="Center" />
            <TextBlock
                x:Name="_speakerLastName"
                TextWrapping="Wrap"
                Text="{Binding SpeakerLastname}"
                DataContext="{Binding}"
                d:LayoutOverrides="Width"
                Margin="4,0,0,0"
                FontSize="18.667" />
        </StackPanel>

    </Grid>
</UserControl>
